package stu.aistar.day01.homeworkj;

public class Text {
    public static void main(String[] args) {
        computer com1 = new computer("MAC",300,"苹果666","三星屏幕");
        screen scr1 = new screen("LED",27,"三星");
        screen scr2 = new screen();
        scr2.setTyp("LED");
        scr2.setSize(99);
        scr2.setBrand("华为");
        com1.checkprice();
        scr2.check();
        System.out.println(com1.getBrand());
        System.out.println(com1.getDescribe());
        System.out.println(com1.getPrice());
        System.out.println(com1.getScr());
        System.out.println(com1.toString());
        System.out.println(scr1.getBrand());
        System.out.println(scr2.getSize());
        System.out.println(scr1.getTyp());




    }
}
